<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			body{
				perspective: 800px;
			}
			.bigbox{
				transform-style: preserve-3d;
				position: relative;
				width: 400px;
				height: 400px;
				border: 1px solid red;
				margin: 200px auto;
			}
			.bigbox div{
				position: absolute;
				left: 0;
				top: 0;
				width: 400px;
				height: 400px;
				border: 1px solid black;
				font-size: 36px;
				text-align: center;
				line-height: 400px;
			}
			.bigbox div:nth-child(1){
				transform: translateZ(200px);
			}
			.bigbox div:nth-child(2){
				transform: translateZ(-200px);
			}
			.bigbox div:nth-child(3){
				transform: translateY(200px) rotateX(90deg);
			}
			.bigbox div:nth-child(4){
				transform: translateY(-200px) rotateX(90deg);
			}
			.bigbox div:nth-child(5){
				transform: translateX(200px) rotateY(90Deg);
			}
			.bigbox div:nth-child(6){
				transform: translateX(-200px) rotateY(90deg);
			}
		</style>
	</head>
	<body>
		<div class="bigbox">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
		</div>
	</body>
</html>